<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>H+ 后台主题UI框架 - 表单验证 jQuery Validation</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> 
    	<link href="../../css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/animate.min.css" rel="stylesheet">
    <link href="../../css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
    <script src="../../js/jquery.min.js?v=2.1.4"></script>
    <script src="../../js/bootstrap.min.js?v=3.3.5"></script>
    <script src="../../js/angular-1.4.2/angular.min.js"></script>

</head>

<body class="gray-bg" ng-app="systemRole" ng-controller="systemRoleCtrl">
    <div class="wrapper wrapper-content animated fadeInRight">
         <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>新增角色</h5>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">角色名称：</label>
                                <div class="col-sm-8">
                                    <input  name="firstname" class="form-control" type="text" ng-model="role.name">
                                    <!--<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span>-->
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">排序：</label>
                                <div class="col-sm-8">
                                    <input name="lastname" class="form-control" type="text" ng-model="role.sort">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-3 control-label">机构：</label>
                                <div class="col-sm-8">
                                   <select class="form-control m-b" name="account" ng-model="role.orgId">
                                        <option value="1">选项 1</option>
                                        <option value="2">选项 2</option>
                                        <option value="3">选项 3</option>
                                        <option value="4">选项 4</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button ng-click="roleSave()" class="btn btn-primary" type="button"><li class="fa fa-check"></li>提交</button>
                                    <button class="btn btn-default" type="button"><li class="glyphicon glyphicon-arrow-left"></li>返回</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>
<script>
var systemRole = angular.module('systemRole', []);
systemRole.controller('systemRoleCtrl', function($scope,$location) {
    // $scope.role={name:"行政11",sort:"1",orgId:"3"};
     $scope.roleSave=function(){
     	alert($scope.role.orgId);
     }
});

    </script>
</html>